﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SoundSynth.Oscillators
{
    public class SquareOscillator:BaseOscillator
    {
        public SquareOscillator() : base() { }
        public override float GetNext(float timedomain)
        {
            return Math.Sign(Math.Sin(2f * Math.PI * timedomain));
        }
    }
}
